package com.gewu.teday.bean;

import android.os.Parcel;
import android.os.Parcelable;

import kotlinx.android.parcel.Parcelize;

@Parcelize
public class ItemIedaBenans implements Parcelable {

    private String zuopin;
    private String shouyi;
    private String jichu;

    public ItemIedaBenans() {
    }

    public ItemIedaBenans(String zuopin, String shouyi, String jichu) {
        this.zuopin = zuopin;
        this.shouyi = shouyi;
        this.jichu = jichu;
    }

    protected ItemIedaBenans(Parcel in) {
        zuopin = in.readString();
        shouyi = in.readString();
        jichu = in.readString();
    }

    public static final Creator<ItemIedaBenans> CREATOR = new Creator<ItemIedaBenans>() {
        @Override
        public ItemIedaBenans createFromParcel(Parcel in) {
            return new ItemIedaBenans(in);
        }

        @Override
        public ItemIedaBenans[] newArray(int size) {
            return new ItemIedaBenans[size];
        }
    };

    public String getZuopin() {
        return zuopin;
    }

    public void setZuopin(String zuopin) {
        this.zuopin = zuopin;
    }

    public String getShouyi() {
        return shouyi;
    }

    public void setShouyi(String shouyi) {
        this.shouyi = shouyi;
    }

    public String getJichu() {
        return jichu;
    }

    public void setJichu(String jichu) {
        this.jichu = jichu;
    }

    @Override
    public String toString() {
        return "ItemIedaBenans{" +
                "zuopin='" + zuopin +
                ", shouyi='" + shouyi +
                ", jichu='" + jichu +
                '}';
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(zuopin);
        dest.writeString(shouyi);
        dest.writeString(jichu);
    }
}
